VDSetHue
TheVDSetHue
function sets the current hue value. Hue is similar to the tint control on a television, and it is specified in degrees with complementary colors set 180 degrees apart (red is 0, green is +120, and blue is -120). Video digitizer components support hue values that range from 0 (-180 shift in hue) to 65,535 (+179 shift in hue), where 32,767 represents a 0 shift in hue.
pascal VideoDigitizerError VDSetHue (VideoDigitizerComponent ci, unsigned short *hue);
ci
- Specifies the video digitizer component for the request. Applications obtain this reference from the Component Manager's
OpenComponent
function.hue
- Contains a pointer to an integer that contains the new hue value. The video digitizer component attempts to set the hue value to the value specified by this parameter. The digitizer component returns the new value, so that the application can avoid using unsupported values in future requests.
RESULT CODES
noErr 0 No error digiUnimpErr -2201 Function not supported qtParamErr -2202 Invalid parameter value SEE ALSO
Your application can obtain the current hue value by calling theVDGetHue
function (described in the next section). To retrieve the recommended hue value, your application can call theVDGetVideoDefaults
function (described on page 8-66).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help